home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / etc / init / network-interface.conf < prev    next >
Text File  |  2009-09-14  |  493b  |  20 lines

  1. # network-interface - configure network device
  2. #
  3. # This service causes network devices to be brought up or down as a result
  4. # of hardware being added or removed, including that which isn't ordinarily
  5. # removable.
  6.  
  7. description    "configure network device"
  8.  
  9. start on net-device-added
  10. stop on net-device-removed INTERFACE=$INTERFACE
  11.  
  12. instance $INTERFACE
  13.  
  14. pre-start script
  15.     mkdir -p /var/run/network
  16.     exec ifup --allow auto $INTERFACE
  17. end script
  18.  
  19. post-stop exec ifdown --allow auto $INTERFACE
  20.